#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0;
    scanf("%d", &n);

    double t = 1;
    for (double i = 2; i <= n; i++){
        t -= 1 / (i * i);
    }

    printf("%.6lf", t);

    return 0;
}